﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SetLanguage.ascx.cs" Inherits="SetLanguage" %>
<div class="MainFilter">
    <span class="headertext">Ngôn ngữ:</span>
    <asp:DropDownList ID="cmbLanguage" runat="server" Width="112px" AutoPostBack="True"
        OnSelectedIndexChanged="cmbLanguage_SelectedIndexChanged">
        <asp:ListItem Text="Vietnamese" Selected="True" Value="vi-VN"></asp:ListItem>
        <asp:ListItem Value="en-US">English</asp:ListItem>
    </asp:DropDownList>
</div>
<asp:GridView ID="grvLanguage" runat="server" AutoGenerateColumns="False" AllowPaging="True"
    PageSize="20" Font-Size="Small" CssClass="adminlist" ForeColor="#333333" GridLines="None"
    OnPageIndexChanging="grvLanguage_PageIndexChanging" Width="100%">
    <Columns>
        <asp:TemplateField HeaderText="X&#243;a">
            <HeaderTemplate>
                <input id="chkAll" name="chkAll" onclick="javascript:SelectAllCheckboxes(this);"
                    runat="server" type="checkbox" />
            </HeaderTemplate>
            <ItemTemplate>
                <asp:CheckBox runat="server" ID="chkSelect" ToolTip='<%# Eval("ResourceValueID") %>' />
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" Width="20px" />
            <HeaderStyle Width="20px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Từ kh&#243;a">
            <ItemTemplate>
                <asp:TextBox ID="txtName" runat="server" Text='<%# Eval("ResourceName") %>' Width="180px"
                    ReadOnly="true"></asp:TextBox>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Left" />
            <HeaderStyle HorizontalAlign="Left" Width="180px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Nội dung">
            <ItemTemplate>
                <asp:TextBox ID="txtValue" runat="server" Text='<%# Eval("Value") %>' Width="99%"></asp:TextBox>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Left" />
            <HeaderStyle HorizontalAlign="Left" />
        </asp:TemplateField>
    </Columns>
    <EmptyDataTemplate>
        <div align="center" id="EmptyData">
            Không có thông tin...</div>
    </EmptyDataTemplate>
    <RowStyle CssClass="row0" />
    <AlternatingRowStyle CssClass="row1" />
</asp:GridView>
